<!DOCTYPE html>
<html>
<head>
    <title>资产流水表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:walletlog:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:walletlog:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:walletlog:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.userId" @keyup.enter="query" placeholder="用户ID">
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.mobile" @keyup.enter="query" placeholder="手机号码">
            </div>
            <div class="form-group col-sm-2">
                <span class="col-sm-2 control-label" >类型</span>
                <select id="combo" class="combobox  form-control col-sm-5" style="width: 50%"  v-model="q.type"  @keyup.enter="query">
                    <option value="1">可用余额</option>
                    <option value="2">康豆</option>
                    <option value="3">可用奖励</option>
                    <option value="5">限制奖励</option>
                </select>
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <a class="btn btn-default" @click="reset">重置</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
            <form class="form-horizontal">
                <div class="form-group">
                    <div class="col-sm-2 control-label">流水号</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.orderNo" placeholder="流水号"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">手机号</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.mobile" placeholder="手机号"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">用户ID</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.userId" placeholder="用户ID"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.fromId" placeholder=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">当前变动金额</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.amount" placeholder="当前变动金额"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">变动前金额</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.beforeAmount" placeholder="变动前金额"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">变动后余额</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.afterAmount" placeholder="变动后余额"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">类型：1 余额 2  奖励 3 保证金</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.type" placeholder="类型：1 余额 2  奖励 3 保证金"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">备注</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.remark" placeholder="备注"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">流动方向: 1、+ 2、 -</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.direction" placeholder="流动方向: 1、+ 2、 -"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="walletLog.createTime" placeholder=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                    &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
                </div>
            </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/walletlog.js?_${.now?long}"></script>
</body>
</html>